package com.qing.mapper;

import com.qing.pojo.Notice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author qinghua
 * @since 2022-06-06
 */
@Mapper
public interface NoticeMapper extends BaseMapper<Notice> {

    /**
     * 查询所有公告和发布人姓名
     */
    List<Map<String,Object>> queryAllAndName();

    /**
     * 根据公告标题进行模糊查询
     */
    List<Map<String, Object>> queryNoticeByTitle(@Param("title") String title);

}
